import VueRouter from 'vue-router'
import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import NewsList from './news/NewsList.vue'
import NewsBody from './news/NewsBody.vue'
import ImageShare from './imageshare/ImageShare.vue'
import ShopList from './shopcontainer/ShopList.vue'
import GoodsMessage from './shopcontainer/goodsmessage.vue'
// --host 192.168.43.111

var router=new VueRouter({
	routes:[
	{path:'/',redirect:'/home'},
	{path:'/home',component:HomeContainer},
	{path:'/member',component:MemberContainer},
	{path:'/shopcar',component:SearchContainer},
	{path:'/search',component:ShopcarContainer},
	{path:'/home/newslist',component:NewsList},
	{path:'/home/newslist/newsbody/posts/:id',component:NewsBody},
	{path:'/home/imageshare',component:ImageShare},
	{path:'/home/shoplist',component:ShopList},
	{path:'/home/shoplist/goodsmessage/:id',component:GoodsMessage}
	
	],
	linkActiveClass:'mui-active'

})

export default router
